<?php
require_once('db.php');

$title = htmlspecialchars(trim($_POST['title']));
$street = htmlspecialchars(trim($_POST['street']));
$price = htmlspecialchars(trim($_POST['price']));
$text = htmlspecialchars(trim($_POST['text']));

$query = "INSERT INTO `cruel_stancje`.`Stancja` (`Tytul`, `Adres`, `Cena`, `Tresc`) VALUES (".$title.",".$street.",".$price.",".$text.")";
mysql_query($query);

?>